package com.yztc.orangeentertainment.ui.main.channalcontentfragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.view.View;
import android.widget.Button;

import com.yztc.orangeentertainment.R;

/**
 * Created by My on 2016/10/15.
 */
public class DeleteActivity extends Activity implements View.OnClickListener{
    private Button btnYes;
    private Button btnNo;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.deletecontent);
        getWindow().setLayout(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.MATCH_PARENT);
        initView();
    }

    //实例化控件
    private void initView() {
        btnYes= (Button) findViewById(R.id.btn_yes);
        btnNo= (Button) findViewById(R.id.btn_no);
        btnNo.setOnClickListener(this);
        btnYes.setOnClickListener(this);
    }
    //实现按钮的点击事件
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_no:
                finish();
                break;
            case R.id.btn_yes:
                finish();
                break;
        }
    }
}
